package labox.innovation.gameserver.skills.conditions;

import labox.innovation.gameserver.skills.Env;

/**
 * 
 * @author janiii
 */
public class ConditionTargetAbnormal extends Condition {
	private final int _abnormalId;

	public ConditionTargetAbnormal(int abnormalId) {
		_abnormalId = abnormalId;
	}

	@Override
	boolean testImpl(Env env) {
		return (env.target.getAbnormalEffect() & _abnormalId) != 0;
	}

}
